package data.app.receive.users
{
	import data.app.packCode.UserPackCode;
	
	import data.app.events.user.UserEvent;
	
	import flash.events.EventDispatcher;

	public class UserReceiveData extends EventDispatcher
	{
		public function UserReceiveData()
		{
		}
		
		/**
		 * 事件处理
		 * @param dataPack 数据包
		 */		
		public function dispatcher(dataPack:Object):void
		{
			var packCode:int=int(dataPack.packCode);//取得数据包最子级编号
			switch(packCode)
			{
				case UserPackCode.USER_LOGIN://用户登陆
					dispatchEvent(new UserEvent(UserEvent.USER_LOGIN, dataPack));
					break;
//				case UserPackCode.USER_LIST://用户列表
//					dispatchEvent(new UserDataEvent(UserDataEvent.USER_LIST, dataPack));
//					break;
			}
			
		}
	}
}